From: Jan Beulich Date: Fri, 2 Dec 2011 13:22:47 +0000 (+0100) Subject: AMD IOMMU v2: minor cleanup X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=df32a79d0ea388e76dfece4035d62e8a4947a17a;p=xen.git AMD IOMMU v2: minor cleanup Despite this array living in an __init function, having such be an automatic variable is rather inefficient in terms of generated code. Signed-off-by: Jan Beulich Acked-by: Wei Wang2 --- diff --git a/xen/drivers/passthrough/amd/iommu_detect.c b/xen/drivers/passthrough/amd/iommu_detect.c index 0bf933b110..a57af7ba96 100644 --- a/xen/drivers/passthrough/amd/iommu_detect.c +++ b/xen/drivers/passthrough/amd/iommu_detect.c @@ -66,7 +66,7 @@ void __init get_iommu_features(struct amd_iommu *iommu) { u32 low, high; int i = 0 ; - char * feature_str[] = { + static const char *__initdata feature_str[] = { "- Prefetch Pages Command", "- Peripheral Page Service Request", "- X2APIC Supported",